3D User Interfaces and 3D App Building Using the Chrome Library Set of Behaviors
Table of Contents
- Introduction
- Setting Up the Texture Render Format
- Setting Up Hardware Anti-Aliasing (FSAA)
- Setting Up the Shader Blend Level for Reflection
- Opening and Closing the Movable Parts of the Car
- Creating a UI on Top of the 3D Scene
- Changing the Camera
- Creating a 3D Navigation System for a Website
- Controlling Flash from Shockwave 3D
- Afterword and Conclusion
Creating a 3D Navigation System for a Website
In this next section, you will use the W3D file of a town that is included in the sample files linked from the beginning of this article. You want the user to be able to click a building to display a corresponding web page in a frame located in the lower part of the page.
- Create a new movie in Macromedia Director.
- Edit the Movie Properties in the Property inspector (Movie tab) and give the stage a size of 760 pixels in width and 300 in height.
- Drag and drop the town W3D cast member directly onto the Stage or onto the Score to have it centered automatically.
-
Resize the W3D sprite directly on the Stage or in the Property inspector (Sprite tab) so it fits the Stage size (760 x 300).
Figure 25. The town scene stage
In Macromedia Dreamweaver or in a text editor, create an HTML document with the following HTML code:
<FRAMESET ROWS="300, *" border=0 scroll=no> <FRAME NAME="nav" SRC="sw3d_nav.htm" scrolling=no> <FRAME NAME="display" SRC="default.htm"> </FRAMESET>
The first frame, nav, will display the navigation interface created with Shockwave 3D and will include the <OBJECT> and <EMBED> tag output by Director when publishing the movie. The second frame, whose name is display, will be the target frame in which the pages will be displayed.
- Save the frameset HTML document as index.html.
- Create a new page and name it default.htm. It will be the first page shown in the display frame.
- Create yet another page and enter some text. Save it as small_pyramid.html.
-
In Macromedia Director, drag and drop the Go to URL with Rollover behavior onto the W3D sprite.
Figure 26. The Go to URL with Rollover behavior
The following dialog box appears:
Figure 27. The Go to URL with Rollover parameters dialog box
- Select the small pyramid model and enter the URL to the corresponding page: small_pyramid.html.
- Select _targetname as Target and enter display as the target name (the name of the frame where you want to display pages).
- Create several instances of the Go to URL with Rollover behavior. Drag and drop it several times onto the W3D sprite, each time selecting a different model and entering a URL to another HTML document. But always specify display as the target frame.
-
Edit the Publish Settings in the File menu of the movie. The following dialog box appears:
Figure 28. The formats tab of the Publish Settings dialog box
- Enter the name sw3d_nav.htm for the HTML file. This is important as the frameset document is already pointing to this file.
- In Windows Explorer or the Macintosh Finder, double-click the index.html file to launch the browser as shown in figure 29 below.
Figure 29. The project as viewed in Internet Explorer
When you roll the mouse over the small pyramid, it highlights in yellow, and the mouse cursor changes to a hand. Click the small pyramid, and the link is displayed in the display frame in the lower part the page as shown in figure 30 below.
Figure 30. The small pyramid.htm file shown in the display frame.